//
//  ComingTableViewCell.m
//  MyMovie
//
//  Created by Weiwei on 16/3/4.
//  Copyright © 2016年 bever贝沃汇力 weiwei. All rights reserved.
//

#import "ComingTableViewCell.h"

@implementation ComingTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

//@property(nonatomic,copy)NSString* title,*image,* type;
//
//@property(nonatomic,strong)NSNumber* rMonth,* rDay,*wantedCount;
-(void)setModel:(ComingModel *)model{
    _model = model;
    
    self.Date.text = [NSString stringWithFormat:@"%@日",_model.rDay];
    self.title.text = _model.title;
    self.type.text = _model.type;
    
    [self.image setImageWithURL:[NSURL URLWithString:_model.image]];
    
    
    
    //-------富文本------------
    
    NSMutableAttributedString *wanted = [[NSMutableAttributedString alloc]initWithString:[NSString stringWithFormat:@"%@人期待上映",_model.wantedCount]];
    
    [wanted addAttribute:NSForegroundColorAttributeName value:[UIColor orangeColor] range:NSMakeRange(0, [NSString stringWithFormat:@"%@",_model.wantedCount].length)];
    
    self.wantCount.attributedText = wanted;
    
    
    
    
}

@end
